package com.jic.member.controller.manage;

import com.jic.common.base.vo.RestResult;
import com.jic.member.api.rest.MemberGrowthOperationApi;
import com.jic.member.request.ObtainOrConsumptionGrowthRequest;
import com.jic.member.service.MememberGrowthObtainService;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@ApiOperation(value = "操作会员成长值")
@RestController
@RequestMapping("obtain")
@Slf4j
public class ObtainOrConsumptionGrowthController implements MemberGrowthOperationApi {

    @Autowired
    private MememberGrowthObtainService mememberGrowthObtainService;

    @ApiOperation(value = "操作会员成长值")
    @Override
    public RestResult<Boolean> obtainOrConsumptionGrowth(@RequestBody ObtainOrConsumptionGrowthRequest memberGrowthActionApiRequest){
        return mememberGrowthObtainService.obtainOrConsumptionGrowth(memberGrowthActionApiRequest);
    }
}
